<table class="table table-striped  checkOutTbl">
    <thead>
        <tr class="header">
            <th width="100">Product</th>
            <th>Qty</th>
            <th>Price</th>   
        </tr>
    </thead>

    <tbody>
        <?php if (count($products) == 0): ?>
        <tr>
            <td >
                No Products
            </td>
            <td>0</td>
            <td>0</td>
        </tr>
        <?php else: ?>
            <?php $shopCardProducts = sfOutputEscaperArrayDecorator::unescape($sf_user->getAttribute('shopCart', array())); ?>
            <?php foreach ($products as $product): ?>
                <tr>
                    <td><?php echo setStringLengthString($product) ?></td>
                    <td><?php echo $shopCardProducts[$product->getId()] ?></td>
                    <td>$ <?php echo $product->getPrice() ?></td>    
                </tr>
            <?php endforeach; ?>
        <?php endif; ?>
    </tbody>
</table>

<a class="clear checkOut button" href = "<?php echo url_for('@ShowMyCart') ?>" >CHECKOUT</a>
